<?
//Last Modified By DPT on May/25/05 to fix issues with HTML
 $Err		=$_GET['Err'];
 $Action	=$_GET['Action'];

 if ($Action=="affiliate")
    $aff="selected = 'selected'";
 else
     $mer="selected = 'selected'";
?>
<table width="775" border="0" align="center" class="outtbl" cellpadding="0" cellspacing="0">
  <tr>
    <td width="215" align="left" valign="top" class="lftnavbg">
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="215" height="26" align="left" valign="top" class="lanbg"><table width="175"  border="0" cellspacing="0">
            <tr>
              <td width="215" align="right" valign="middle">
              <!-- Language: <select name="select2" class="style3">
                <option>English</option>
              </select>
			  -->
			  <? include_once "language_select.php"; ?>
			  </td>
            </tr>
          </table></td>
        </tr>
      </table>

        <table width="190"  border="0" cellspacing="0" cellpadding="15">
          <tr>
            <td width="215">
			<form name="login" action="login_validate.php" method="post">
			<table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="1" colspan="2" bgcolor="#7D7D7D"></td>
                </tr>
                <tr>
                  <td height="25" colspan="2" ><div align="center"><img src="images/login.gif" width="111" height="17" alt="" /></div></td>
                </tr>
                <tr>
                  <td height="1" colspan="2" bgcolor="#7D7D7D"></td>
                </tr>
                <tr>
                  <td height="5" colspan="2" ><span class="style6">
                    <?=$$Err?>
                  </span></td>
                </tr>
                <tr>
                  <td height="15" colspan="2" class="style5"><?=$lang_Choose?>:</td>
                </tr>
                <tr>
                  <td height="20" colspan="2" ><select name="flag" class="style3">
                    <option <?=$mer?> value="merchant"><?=$lang_Merchants?></option>
                    <option <?=$aff?> value="affiliate"><?=$lang_Affiliates?></option>
                  </select></td>
                </tr>
                <tr>
                  <td height="15" colspan="2" ><span class="style5"><?=$lang_Username?>:</span></td>
                </tr>
                <tr>
                  <td height="20" colspan="2" ><input name="login" type="text" class="style3" value="" size="25" /></td>
                </tr>
                <tr>
                  <td height="15" colspan="2" class="style5"><?=$lang_Password?>:</td>
                </tr>
                <tr>
                  <td width="60%"><input  name="password" type="password" class="style3" value="" size="15"/></td>
                  <td width="60" height="20" class="enter"><div class="sbt" onclick="document.login.submit()" >&nbsp;&nbsp;&nbsp;&nbsp; Enter</div></td>
                </tr>
                <tr>
                  <td height="15" colspan="2" ><a href="#" onclick="viewLink()"><?=$lang_Forgot?>? </a></td>
                </tr>
                <tr>
                  <td height="5" colspan="2" ></td>
                </tr>
                <tr>
                  <td height="1" colspan="2" bgcolor="#7D7D7D"></td>
                </tr>
                <tr>
                  <td height="10" colspan="2" ></td>
                </tr>
                <tr>
                  <td height="10" colspan="2" ><div align="justify"><?=$lang_iPartnersmanager?></div></td>
                </tr>
                <tr>
                  <td height="10" colspan="2" ></td>
                </tr>
                <tr>
                  <td height="1" colspan="2" bgcolor="#797979"></td>
                </tr>
            </table></form></td>
          </tr>
    </table></td>
    <td height="100%" rowspan="2" align="left" valign="top"><table width="100%"   border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="260" align="left" valign="top"><table width="260" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td> <img src="images/innerbox1_01.gif" width="24" height="26" alt=""/></td>
              <td width="105" height="26" bgcolor="#2676d1"><div align="center" class="style4"><?=$lang_MERCHANTS?></div></td>
              <td height="26" colspan="3" class="rtborder"> <img src="images/innerbox1_03.gif" width="131" height="26" alt=""/></td>
            </tr>
            <tr>
              <td height="2" colspan="5"  class="ltrtbrdrw" ><table width="100%"  border="0" cellspacing="5" cellpadding="5">
                  <tr>
                    <td>
						<p><?=$lang_When?></p>
                        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td><div align="center"><img src="images/merchb.jpg" width="233" height="157" alt=""/></div></td>
                          </tr>
                        </table>
                        <p><?=$lang_Our?></p>
					</td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td height="26" colspan="3" class="lftborder"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="left" valign="bottom"><table width="100%"  border="0" align="left" cellpadding="0" cellspacing="0">
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td height="5" bgcolor="#d2d2d2"></td>
                        </tr>
                    </table></td>
                    <td width="21"><img src="images/innerbox1_06.gif" width="21" height="26" alt=""/></td>
                  </tr>
              </table></td>
              <td width="103" height="26" bgcolor="#d2d2d2">
                <div align="center"><a href="index.php?act=register"><?=$lang_REGISTER?>!!</a></div></td>
              <td width="25" height="26"> <img src="images/innerbox2_07.gif" width="25" height="26" alt=""/></td>
            </tr>
            <tr>
              <td> <img src="images/spacer.gif" width="24" height="1" alt=""/></td>
              <td> <img src="images/spacer.gif" width="105" height="1" alt=""/></td>
              <td> <img src="images/spacer.gif" width="3" height="1" alt=""/></td>
              <td> <img src="images/spacer.gif" width="103" height="1" alt=""/></td>
              <td> <img src="images/spacer.gif" width="25" height="1" alt=""/></td>
            </tr>
          </table>
            <br/>
        </td>
        <td width="10">&nbsp;</td>
        <td align="left" valign="top"><table width="260" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td> <img src="images/innerbox2_01.gif" width="24" height="26" alt=""/></td>
              <td width="105" height="26" bgcolor="#ffa200"><div align="center" class="style4"><?=$lang_BENEFITS?></div></td>
              <td height="26" colspan="3" class="rtborder"> <img src="images/innerbox2_03.gif" width="131" height="26" alt=""/></td>
            </tr>
            <tr>
              <td height="2" colspan="5"  class="ltrtbrdr" ><table width="100%"  border="0" cellspacing="5" cellpadding="5">
                  <tr>
                    <td><p>&nbsp; </p>
                        <ul><li><?=$benefitlist1?></li>
                           <li><?=$benefitlist2?></li>
                           <li><?=$benefitlist3?></li>
                           <li><?=$benefitlist4?></li>
                           <li><?=$benefitlist5?></li>
                           <li><?=$benefitlist6?></li>
                           <li><?=$benefitlist7?></li>
                           <li><?=$benefitlist8?></li>
                           <li><?=$benefitlist9?></li>
                           
                        </ul></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td height="26" colspan="3" class="lftborder"> <img src="images/innerbox2_05.gif" width="132" height="26" alt=""/></td>
              <td width="103" height="26" bgcolor="#d2d2d2">&nbsp; </td>
              <td width="25" height="26"> <img src="images/innerbox2_07.gif" width="25" height="26" alt=""/></td>
            </tr>
            <tr>
              <td> <img src="images/spacer.gif" width="24" height="1" alt=""/></td>
              <td> <img src="images/spacer.gif" width="105" height="1" alt=""/></td>
              <td> <img src="images/spacer.gif" width="3" height="1" alt=""/></td>
              <td> <img src="images/spacer.gif" width="103" height="1" alt=""/></td>
              <td> <img src="images/spacer.gif" width="25" height="1" alt=""/></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td width="215" height="23" align="left" valign="bottom" class="lftnavbg"><img src="images/lft_bt_13.gif" width="215" height="23" alt=""/></td>
  </tr>
</table>
<script language="javascript" type="text/javascript">
           function viewLink()
                {

                   url="forgotpass.php";
                   nw = open(url,'new','height=200,width=450,scrollbars=yes');
                   nw.focus();
                }
 </script>